package com.ichina.chat.vo;

import java.util.Date;
import java.util.Set;

public class Question 
{
	private int qid;			//问题编号
	private Type type;			//类型内容
	private Set<Reply> replys;		//回答内容
	private String context;		//提问内容
	private Date time;			//提问时间
	private String user;		//提问用户
	private String ip;			//用户IP
	private String url;			//用户浏览过的URL
	private int typeid;			//问题类型
	


	public Question(Type type, String context, Date time, String user,
			String ip, String url) {
		this.type = type;
		this.context = context;
		this.time = time;
		this.user = user;
		this.ip = ip;
		this.url = url;
	}

	public Question(String user,String context,Date time){
		this.user = user;
		this.context = context;
		this.time = time;
		
	}
	public Question(int qid, String context, Date time, String user, String ip,
			String url, int typeid) {
		this.qid = qid;
		this.context = context;
		this.time = time;
		this.user = user;
		this.ip = ip;
		this.url = url;
		this.typeid = typeid;
	}


	public Question() {
	}

	public Set<Reply> getReplys() {
		return replys;
	}

	public void setReplys(Set<Reply> replys) {
		this.replys = replys;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}


	public int getQid() {
		return qid;
	}
	public void setQid(int qid) {
		this.qid = qid;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}


	public int getTypeid() {
		return typeid;
	}


	public void setTypeid(int typeid) {
		this.typeid = typeid;
	}
}
